﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleService.Helps
{
    public class EmailOptions
    {
        public string FromAddress { get; set; }
        public string ToAddress { get; set; }
        public string Host { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public int Port { get; set; }
        public string SenderName { get; set; }
    }


    public class EmailModel
    {
        /// <summary>
        /// 邮件收件人
        /// </summary>
        public List<string> To { get; set; }

        /// <summary>
        /// 邮件抄送人
        /// </summary>
        public List<string> Cc { get; set; }

        /// <summary>
        /// 邮件主题
        /// </summary>
        public string Subject { get; set; }


        /// <summary>
        /// 邮件内容
        /// </summary>
        public string Context { get; set; }


        /// <summary>
        /// 是否以Html形式发送
        /// </summary>
        public bool IsHtml { get; set; }


        /// <summary>
        /// 附件列表（文件绝对路径）
        /// </summary>
        public List<string> Files { get; set; }
    }
}
